// -----------------------------------------------------------------------
//  <copyright file="ApiResultType.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024-04-10 7:45</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.Domain;

/// <summary>
/// 表示Api操作结果类型的枚举
/// </summary>
public enum ApiResultType
{
    /// <summary>
    /// 消息结果类型
    /// </summary>
    Info = 203,

    /// <summary>
    /// 成功结果类型
    /// </summary>
    Success = 200,

    /// <summary>
    /// 异常结果类型
    /// </summary>
    Error = 500,

    /// <summary>
    /// 用户未登录
    /// </summary>
    UnAuth = 401,

    /// <summary>
    /// 已登录，但权限不足
    /// </summary>
    Forbidden = 403,

    /// <summary>
    /// 资源未找到
    /// </summary>
    NotFound = 404,

    /// <summary>
    /// 资源被锁定
    /// </summary>
    Locked = 423
}
